﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//Importamos
using EventSys.BussinesEntities;
using EventSys.Repository;
using Microsoft.Practices.Unity;


namespace EventSys.BussinesLogic
{
    public class DirectoresService:IDirectoresService
    {
        [Dependency]
        public IDirectoresRepository directoresRepository { get; set; }


        public void RegistrarDirector(Director director)
        {
            directoresRepository.RegistrarDirector(director);
        }

        public Director DirectorById(int id)
        {
            return directoresRepository.DirectorById(id);
        }

        public void EditarDirector(Director director)
        {
            directoresRepository.EditarDirector(director);
        }

        public void EliminarDirector(int id)
        {
            throw new NotImplementedException();
        }

        public List<Director> GetFromAllDirector()
        {
            return directoresRepository.GetFromAllDirector();
        }

        public List<Director> GetFromAllDirectorByCriterio(string criterio)
        {
            return directoresRepository.GetFromAllDirectorByCriterio(criterio);
        }


        //public bool ExisteDirectorByDNI(string dni)
        //{
        //    return directoresRepository.ExisteDirectorByDNI(dni);
        //}
    }
}
